<?php
function replace_placeholder( $filePath, $content, $placeHolder ){
	
		$res = false;
	
		$str = implode( "\n" ,file( $filePath ) );
		
		$str = str_replace( "//[start]<{$placeHolder}>[end]//" , $content , $str );
		
		$fh = fopen ( CONST_CONFIG_FILE , 'w' );
		
		fwrite( $fh , $str , strlen( $str ) );
		
		fclose( $fh );
		
		$res = true;
		
		return $res;
		
}

?>
